<template>
  <div class="wrap">
    <div class="menu">
      <div class="item" v-for="(item ,index) in navData" :key="index">
        <router-link :to="item.path">{{item.title}}</router-link>
      </div>
      <!-- <router-link class="item" to="/event">待办清单</router-link>
      <router-link class="item" to="/report">学生成绩单</router-link>
      <router-link class="item" to="/helloworld">helloworld</router-link>
      <router-link class="item" to="/loading">loading</router-link>
      <router-link class="item" to="/Loadingx">LoadingX</router-link>
      <router-link class="item" to="/Student">Student</router-link>
      <router-link class="item" to="/LoginVerify">LoginVerify</router-link>
      <router-link class="item" to="/Revere">Revere</router-link> -->
    </div>
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import { onMounted } from "vue";
import { navData } from '@/untils/nav';//动态路由1

export default {
  name: 'App',
  components: {},
  setup(){
    onMounted(()=>{
      console.log(navData)
    })
    return{
      navData
    }
  }
};
</script>
<style scoped>
.wrap {
  display: flex;
  flex-flow: row;
}
.menu {
  margin: 40px;
}
</style>

